class CreateRecommendSubjects < ActiveRecord::Migration
  def self.up
    create_table :recommend_subjects do |t|
			t.string :title, :null => false, :limit => 20
			t.integer :sort_order, :limit => 4, :default => 0
			t.integer :status, :limit => 1,:default => 0
			t.integer :flag, :limit => 4, :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :recommend_subjects
  end
end
